package com.yaj.myfactorysupport.controller;


import com.yaj.myfactorysupport.service.VTmItemService;
import com.yaj.myfactorysupport.util.RespBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wei
 * @since 2021-06-02
 */
@Api(tags = "VTmItemController")
@RestController
@RequestMapping("/myfactorysupport/v-tm-item")
public class VTmItemController {
    @Autowired
    private VTmItemService vTmItemService;

    @ApiOperation(value = "根据品番取得基板取数")
    @GetMapping("GetCavitNumByItemId")
    public RespBean getCavitNumByItemId(@RequestParam(value="pcbId") String itemId){
        return vTmItemService.getCavitNumByItemId(itemId);
    }
}

